﻿@using LaxCraft.Repositories;
@using LaxCraft.Domain;
@using LaxCraft.Helpers;
@{
    ViewBag.Title = "Scholar Library";
}
<h2>Scholar Library</h2>
<table id="linkTable" class="tablesorter">
<thead>
    <tr>
        <th>Category</th>
        <th>Link</th>
        <th>Description</th>
    </tr>
    </thead>
    <tbody>
    @foreach (var link in ViewBag.Links) {
        <tr>
            <td class="playerName">
                @link.Category
            </td>
            <td>
                <a href="@link.Url" target="_blank">@link.Name</a>
            </td>
            <td>
                @link.Description
            </td>
        </tr>
    }
    </tbody>
</table>


<script type="text/javascript">
    $(document).ready(function () {
        $("#linkTable").tablesorter();
    }
); 
</script>